package com.sina.weibo;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;

public class ScreenOrientationBaseActivity extends Activity
{
  public boolean dispatchKeyEvent(KeyEvent paramKeyEvent)
  {
    int i;
    if ((paramKeyEvent.getKeyCode() == 84) && (StaticInfo.mUser == null))
      if (super.dispatchKeyEvent(paramKeyEvent))
        i = 0;
    while (true)
    {
      return i;
      i = 1;
      continue;
      boolean bool = super.dispatchKeyEvent(paramKeyEvent);
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
  }

  protected void onResume()
  {
    super.onResume();
    Utils.loge(String.valueOf(MainTabActivity.mScreenOrientation));
    if (!SettingsPref.isScreenPortrait(this))
      setRequestedOrientation(1);
    while (true)
    {
      //return;
      setRequestedOrientation(4);
    }
  }
}